// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import App from './Test'
// import router from './router'
import store from './store/store'
import { nativePlugin } from 'vue-xiaobu-utils'
import NativeUtils from '@/utils/NativeUtils'
import ConfirmBox from '../../components/confirm/ConfirmBox.js'
import testLogin from '@/utils/LoginUtil'
testLogin()
// localStorage.setItem('XIAOBUSESSION', 'B8E8JW1QGUUFANNR08NGN15JZB2MMDCD')

if (window.FastClick) {
  window.FastClick.attach(window.document.body)
}
Vue.config.productionTip = false
Vue.use(nativePlugin, {
  platform: true
})
Vue.use(NativeUtils)
Vue.prototype.$ConfirmBox = ConfirmBox
Vue.prototype.$EventBus = new Vue()

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  components: { App },
  template: '<App/>'
})
